package repos

import "gitee.com/knowgo/gpa/examples/pratics/models"

// type Teach struct {
// 	ID       int    `gpa:"pk autoincr"`
// 	Name     string `gpa:"varchar(50)"`
// 	BirthDay time.Time
// 	Address  string `gpa:"varchar(200)"`
// 	Addr     op.Addr
// }

type Teacher interface {
	InsertTeacher(name string) (*models.Teacher, error)
	Insert1Teacher(tc *models.Teacher) (*models.Teacher, error)

	UpdateByID(tc *models.Teacher) error

	// FindByID(id int64) (*models.Teacher, error)
	// FindAll() ([]*Teach, error)
	// FindMap(kg func(*Teach) (int64, error)) (map[int64]*Teach, error)
	// FindCallbck(cb func(*Teach) error) error
}
